ubg_health_create_icon

Syntax:

ubg_health_create_icon(layer, sprite, x, y, health_min, health_max, columns, padding, event)

Arguments:

Argument Name Type Description
layerlayer_idid or name of the layer to create the healthbar on
spritespriteid of the sprite to use as the health icon
xrealx-position to create the healthbar at
yrealy-position to create the healthbar at
health_minrealminimum value that the health can be
health_maxrealmaximum value that the health can be
columnsrealnumber of columns to allow (-1 = unlimited)
paddingrealpadding, in pixels, between each icon
eventUBG_HEALTH_RENDER_EVENTenum value from UBG_HEALTH_RENDER_EVENT specifying to render in draw or gui

Returns: (real)

Description:

Loading page...

Back: System
Next: ubg_health_create_bar